package com.zhuiyun.educations.api.video.service;

import com.zhuiyun.educations.api.video.entity.Comment;
import com.zhuiyun.educations.api.video.entity.CommentDTO;
import com.zhuiyun.educations.common.response.CommonResult;
import com.zhuiyun.educations.util.pageUtil.PageRequest;
import com.zhuiyun.educations.util.pageUtil.PageResult;

/**
 * @ClassName CommentService
 * @Description TODO
 * @Author 杨友朋
 * @Date 2023/7/12 9:40
 **/
public interface CommentService {
    /**
    * @Author 杨友朋
    * @Description TODO 分页查询评论
    * @Date 2023/7/12 11:03
    * @Return
    * @param commentDTO,pageRequest
    */
    PageResult selectComment(CommentDTO commentDTO, PageRequest pageRequest);

    /**
    * @Author 杨友朋
    * @Description TODO 根据id逻辑删除
    * @Date 2023/7/12 11:06
    * @Return
    * @param id
    */
    Integer delById(Integer id);

    CommonResult insertComment(Comment comment);
}
